{block admin_content}
<h1>Typy souborů</h1>
<table width="100%">
	<thead>
		<tr><th>Název</th><th width="20"><a n:href="addType">Přidat</a></th></tr>
	</thead>
	<tbody>
		{foreach $filetypes as $filetype}
		<tr>
			<td>{$filetype[name]}</td>
			<td><a n:href="editType, $filetype[id]"><img src="{$basePath}/images/edit.gif"></a> <a n:href="deleteType!, $filetype[id]" onclick="return del();"><img src="{$basePath}/images/delete.gif"></a></td>
		</tr>
		{/foreach}
	</tbody>
</table>
<script type="text/javascript">
function del(){
	return confirm('Opravdu chcete smazat typ souborů?');
}
</script>
{/block}